using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Controls;

namespace LS
{
    public abstract class MouseSwipeState : MouseClickState
    {
        protected MouseSwipeState(PlayerInputHolder.InputSetting setting) : base(setting)
        {
        }

        public override bool IsPressedThisFrame()
        {
            return (m_Phase == InputPhase.Update || m_Phase == InputPhase.End) &&
                DistanceSq > Setting.TapDuration;
        }
    }
}
